<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
<script>
    function change() {
        window.location.href="../admin/admin"
    }
    function redirect() {
        window.location.href="./register"
    }
</script>
</head>
<body>
    <form action="login.do" method="post">
        账号：<input type="text" id="name" name="name"><br/>
        密码：<input type="password" id="pwd" name="pwd">
        <input type="submit" value="登录">
    </form>
    <input type="button" value="注册" onclick="redirect()">
<input type="button" value="管理员登录" id="admin" onclick="change()">
</body>
</html>